package com.example.entitydemo.service.impl;

import com.example.entitydemo.pojo.entity.User;
import com.example.entitydemo.service.IUserService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService implements IUserService {
    @Override
    public void save(User user) {
        user.save();
    }

    @Override
    public void update(User user) {
        user.update();
    }

    @Override
    public void deleteById(User user) {
        user.deleteById();
    }

    @Override
    public List<User> select(User user) {
        return user.select();
    }
}
